//
//  MyCollectionViewCell.m
//  UIHomeWork15_网易标题自适应
//
//  Created by tusm on 16/8/3.
//  Copyright © 2016年 tusm. All rights reserved.
//

#import "MyCollectionViewCell.h"
@interface MyCollectionViewCell ()
@end
@implementation MyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        _label = [[UILabel alloc] initWithFrame:self.bounds];
        [self.contentView addSubview:_label];
    }
    return self;

}
- (void)layoutSubviews{
    [super layoutSubviews];
    _label.frame = self.bounds;
}
@end
